<?php

namespace App\Models;

use App\Models\Cafe;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;

class CafesPhoto extends Model
{
    //
    public function cafe(){
        return $this->belongsTo(Cafe::class,'cafe_id','id');
    }

    public function user(){
        return $this->belongsTo(User::class,'uploaded_by','id');
    }
}
